package pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Blog implements Serializable {
    private String blogid;  //id
    private String content; //内容
    private String time;    //发表时间
    private String type;   //类型
    private int commentNum;//评论数
    private int heatNum;  //热度
    private String region;//位置
    private String status;//审核状态
    private User user;  //用户实体
    private List<Image> images;//博客拥有的图片（多对一）
    public  List<Comment> mComment;//评论（多对一）

    public List<Comment> getmComment() {
        return mComment;
    }

    public void setmComment(List<Comment> mComment) {
        this.mComment = mComment;
    }

    public List<Image> getImages() {
        return images;
    }

    public void setImages(List<Image> images) {
        this.images = images;
    }

    public String getBlogid() {
        return blogid;
    }

    public void setBlogid(String blogid) {
        this.blogid = blogid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public int getHeatNum() {
        return heatNum;
    }

    public void setHeatNum(int heatNum) {
        this.heatNum = heatNum;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "blogid='" + blogid + '\'' +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                ", type='" + type + '\'' +
                ", commentNum=" + commentNum +
                ", heatNum=" + heatNum +
                ", region='" + region + '\'' +
                ", status='" + status + '\'' +
                ", user=" + user +
                ", images=" + images +
                ", mComment=" + mComment +
                '}';
    }
}
